import java.util.Scanner;

public class test7 {
    public static void main(String[] args) {

        for (int j=1;j<=3;j++) {
            System.out.println("请输入第"+j+"个班的成绩");
            int sum = 0;
            int score = 0;
            Scanner input = new Scanner(System.in);
            for (int i = 1; i <=4; i++) {
                System.out.println("请输入第"+i+"一门课的成绩：");
                score = input.nextInt();
                sum += score;
            }
            System.out.println("第"+j+"个班的平均分是"+sum/4.0);
        }



    }
}
